﻿namespace IOCDemo.IocVersion2;

public class AutoIocAttribute : Attribute
{
    public LifeTimeType Model { get; set; }
    /// <summary>
    /// 接口服务对应的实现类
    /// </summary>
    public Type RelationClassType { get; set; }

    public AutoIocAttribute()
    {
    }

    public AutoIocAttribute(LifeTimeType model)
    {
        Model = model;
    }

    public AutoIocAttribute(LifeTimeType model, Type relationClassType)
    {
        Model = model;
        RelationClassType = relationClassType;
    }
}